1
'*************************** Module Header ******************************'
2 ' Module Name: HtmlPassword.vb
3 ' Project: VBWebBrowserAutomation
4 ' Copyright (c) Microsoft Corporation.
6 ' This class HtmlPassword represents an HtmlElement with the tag "input" and its
9 ' This source is subject to the Microsoft Public License.
10 ' See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
11 ' All other rights reserved.
13 ' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
14 ' EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
15 ' WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
16 '*************************************************************************'
18 Imports System
.Security
.Permissions
20 Public Class HtmlPassword
21 Inherits HtmlInputElement
25 Public Property Value() As String
29 Set(ByVal value
As String)
35 ''' This parameterless constructor is used in deserialization.
41 ''' Initialize an instance of HtmlPassword. This constructor is used by
42 ''' HtmlInputElementFactory.
44 <PermissionSetAttribute(SecurityAction
.LinkDemand
, Name
:="FullTrust")> _
45 Public Sub New(ByVal element
As HtmlElement
)
46 MyBase
.New(element
.Id
)
47 Value
= element
.GetAttribute("value")
51 ''' Set the value of the HtmlElement.
53 <PermissionSetAttribute(SecurityAction
.LinkDemand
, Name
:="FullTrust")> _
54 Public Overrides
Sub SetValue(ByVal element
As HtmlElement
)
55 element
.SetAttribute("value", Value
)